{extend name="../front" /}
{block name="head"}
<title>欢迎回来－{:config('site.title')}</title>
{/block}
{block name="main"}
<main class="container">
  <div class="card mx-auto bg-white text-dark">
    <form class="card-body" action="{:dcUrl('user/login/update')}" method="post" data-toggle="login">
      <h6 class="card-title fw-bold mb-3">帐号登录</h6>
      <div class="input-group mb-4">
        <span class="input-group-text"><i class="iconfont icon-user fw-bold"></i></span>
        <input class="form-control fs-0" name="user_mobile" id="user_mobile" type="text" placeholder="请输入手机号" maxlength="11" autocomplete="off" required>
      </div>
      <div class="input-group mb-4">
        <span class="input-group-text"><i class="iconfont icon-lock fw-bold"></i></span>
        <input class="form-control fs-0" name="user_pass" id="user_pass" type="password" placeholder="请输入密码" maxlength="15" autocomplete="off" required>
      </div>
      <div class="input-group mb-4">
        <span class="input-group-text"><i class="iconfont icon-code"></i></span>
        <input class="form-control fs-0" name="user_captcha" id="captcha-user" type="text" placeholder="请输入验证码" maxlength="4" autocomplete="off" required>
        <span class="input-group-text p-0"><img class="rounded" id="captcha-image" src="{:dcUrl('share/captcha/image')}" alt="captcha" width="88" height="40"/></span>
      </div>
      <div class="d-grid mb-3">
        <button class="btn btn-secondary btn-block">密码登录</button>
      </div>
      <p class="text-center text-muted fs-0 mb-0">未注册用户请先<a class="mx-1" href="{:dcUrl('user/signup/index')}">注册</a>，注册即送<strong class="mx-1">{:config('score.register')}</strong>积分</p>
    </form>
  </div>
</main>
{/block}